#-------------------------------------------------------------------------------
# Name:        mark_view
# Description:
#              "Marks View" window title
#              student button list
#              list of questions as listbox with scrollbar
#              frames for questions in them:
#                  label with question name/description and radio buttons for choices with a correct/incorrect choice highlighted and mark given
#                  label with question name/picture of a graph and a slider bar under it with a correct/incorrect choice highlighted and mark given
#              proctor chat box
#-------------------------------------------------------------------------------
#!/usr/bin/env python

from . import top_buttons_frame

def create():
    screenmanager.root.title("Mark View")
    markViewFrame = tk.Frame(screenmanager.root)

    buttonHeader = top_buttons_frame.create(markViewFrame)
    buttonHeader.pack()

    questionListBox = tk.Listbox(markViewFrame)
    questionListBox.insert(tk.END, "1: Question 1", "2: Question 2", "3: Question 3", "4: Question 4")
    questionListBox.pack()

    exampleQuestion1Frame = tk.Frame(markViewFrame, relief=tk.RIDGE, borderwidth=5)
    exampleQuestion1Descr = tk.Label(markViewFrame, text="How much wood would a woodchuck chuck if a woodchuck could chuck wood?").pack()
    exampleQuestion1Ans = tk.IntVar()
    exampleQuestion1Choice1 = tk.Radiobutton(markViewFrame, text="1", state=tk.DISABLED).pack()
    exampleQuestion1Choice2 = tk.Radiobutton(markViewFrame, text="2", bg='#000000', state=tk.DISABLED).pack()
    exampleQuestion1Choice3 = tk.Radiobutton(markViewFrame, text="3", bg='#ff0000', state=tk.DISABLED).pack()
    exampleQuestion1Choice4 = tk.Radiobutton(markViewFrame, text="Not Applicable", state=tk.DISABLED).pack()
    exampleQuestion1Mark = tk.Label(markViewFrame, text="0/1", fg='#ff0000').pack()
    exampleQuestion1Frame.pack()

    proctorChatBox = shared.broadcast_frame.create(
        markViewFrame,
        "<Broadcast> 3:34pm: Test ends in 10 minutes. Good luck!",
        "Type to chat with proctor").pack()

    markViewFrame.pack()

    return markViewFrame